package com.wlj;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

@SpringBootApplication
@RestController
@MapperScan("com.wlj.dao")
public class AdminApplication {


    @GetMapping("/hello")
    public String hello(){
        //当前时间一年以后的时间
        Date date = new Date(LocalDateTime.now().plusYears(1).atZone(ZoneId.systemDefault()).toInstant().toEpochMilli());
        Integer a=2;
        return "hello spring security";
    }

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class,args);
    }
}
